from gameset.phoenicia.base import *


class Stall(Building, HomeSupplier):
    sells =_ (None)
    
    @property
    def stores(self):
        return self.sells(400)
    
    @property
    def demand(self):
        return [self.sells]
    
    @property
    def home_supply(self):
        return [self.sells]


class FoodSeller(Stall):
    name  =_ ('Food Stall')
    size  =_ (2)
    cost  =_ (50)
    color =_ (Green.with_saturation(0.3))
    staff =_ (4)
    sells =_ (Food)


class BeverageSeller(Stall):
    name  =_ ('Beverage Stall')
    size  =_ (2)
    cost  =_ (50)
    color =_ (Blue.with_saturation(0.3))
    staff =_ (4)
    sells =_ (Beverage)


class PropertySeller(Stall):
    name  =_ ('Property Stall')
    size  =_ (3)
    cost  =_ (150)
    color =_ (Red.with_saturation(0.5))
    staff =_ (7)
    sells =_ (Property)


class ClothesSeller(Stall):
    name  =_ ('Clothes Stall')
    size  =_ (2)
    cost  =_ (150)
    color =_ (Yellow.with_saturation(0.5))
    staff =_ (7)
#    sells =_ (Clothes)
